<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <%
        pageContext.setAttribute("APP_PATH", request.getContextPath());
    %>
    <script type="text/javascript"
            src="${APP_PATH }/static/js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript">
        $(function(){
            to_page(1);
        });

        function to_page(pn){
            $.ajax({
                url:"${APP_PATH}/dish",
                data:"pn="+pn,
                type:"GET",
                success:function(result){
                    console.log(result)
                }
            })
        }
    </script>
</head>
<body>

</body>